<?php

 namespace com;

include "com/funcs/add.php";
abstract class BB{

    abstract function printPI();
}
 
$p=new class extends   BB{
    function printPI(){
        echo"3.14159";
    }
};
$p->printPI();